package main

import "fmt"

func testMultiArray1() {
	array1 := [2][3]int{
		{1, 2, 3},
		{3, 4, 5},
	}

	fmt.Println("[func|testMultiArray1|array1=]", array1)
}

func testMultiArray2() {
	array1 := [2][3]int{}
	array1[0][1] = 1
	array1[1][1] = 2
	fmt.Println("[func|testMultiArray2|array1=]", array1)
}

func testMultiArray3() {
	array1 := [2][3]int{
		{1, 2, 3},
		{3, 4, 5},
	}

	for row_index, row_value := range array1 {
		fmt.Println("row_index:", row_index, "row_value:", row_value)
		for col_index, col_value := range array1[row_index] {
			fmt.Println("col_index:", col_index, "col_value:", col_value)
		}
	}
	fmt.Println()
}

func testMultiArray4() {
	array1 := [2][3]int{
		{1, 2, 3},
		{3, 4, 5},
	}

	for i := 0; i < 2; i++ {
		for j := 0; j < 3; j++ {
			fmt.Printf("array1[%d][%d]=%d\n", i, j, array1[i][j])
		}
	}
	fmt.Println()
}

// func main() {
// 	testMultiArray1()
// 	fmt.Println()
// 	testMultiArray2()
// 	fmt.Println()
// 	testMultiArray3()
// 	fmt.Println()
// 	testMultiArray4()
// }
